import MyLoading from './loading.vue'
import popUp from './popUp.vue'
import toast from './toast.vue'
import inputNumber from './inputNumber.vue'
import checkBox from './checkBox.vue'
// 这里是重点
const globalComponents = {
  install: function (Vue) {
    Vue.component('Loading', MyLoading)
    Vue.component('pop-up', popUp)
    Vue.component('toast', toast)
    Vue.component('input-number', inputNumber)
    Vue.component('check-box', checkBox)
  }
}
// 导出组件
export default globalComponents
